<?php
	ob_start();
    session_start();
    if(!isset($_SESSION['Email'])){
         header("Location: login.php");
    }
    
    
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Member Area </title>
<style type="text/css">
body {
	font-family:"Lucida Grande", "Lucida Sans Unicode", Verdana, Arial, Helvetica, sans-serif;
	font-size:12px;
}
.registration_form {
	margin:0 auto;
	width:500px;
	padding:14px;
}
label {
	width: 10em;
	float: left;
	margin-right: 0.5em;
	display: block
}
.submit {
	float:right;
}
fieldset {
	background:#EBF4FB none repeat scroll 0 0;
	border:2px solid #B7DDF2;
	width: 500px;
}
legend {
	color: #fff;
	background: #80D3E2;
	border: 1px solid #781351;
	padding: 2px 6px
}
.elements {
	padding:10px;
}
p {
	border-bottom:1px solid #B7DDF2;
	color:#666666;
	font-size:11px;
	margin-bottom:20px;
	padding-bottom:10px;
}
a{
    color:#0099FF;
font-weight:bold;
}

/* Box Style */


 .success, .warning, .errormsgbox, .validation {
	border: 1px solid;
	margin: 0 auto;
	padding:10px 5px 10px 60px;
	background-repeat: no-repeat;
	background-position: 10px center;
     font-weight:bold;
     width:450px;
     
}

.success {
   
	color: #4F8A10;
	background-color: #DFF2BF;
	background-image:url('images/success.png');
}
.warning {

	color: #9F6000;
	background-color: #FEEFB3;
	background-image: url('images/warning.png');
}
.errormsgbox {
 
	color: #D8000C;
	background-color: #FFBABA;
	background-image: url('images/error.png');
	
}
.validation {
 
	color: #D63301;
	background-color: #FFCCBA;
	background-image: url('images/error.png');
}



</style>
</head>

<body>


<div class="success">Welcome , <?php echo $_SESSION['Email']; ?><span style="background:#DFF2BF none repeat scroll 0 0;line-height:1;margin-left:160px;;padding:5px 7px;"> <a href="logout.php">Log out</a></span> </div>
<form action="changepassword.php" method="post" class="registration_form">
  <fieldset>
    <legend>Change Password  </legend>

<input id="e-mail" name="e-mail" type="hidden" value="<?php echo $_SESSION['Email'];?>"/>
        <p>Enter Your username and Password Below </p>
    <div class="elements">
      <label for="Password">Old Password:</label>
      <input type="password" id="Old_Password" name="Old_Password" size="25" />
    </div>
	    <div class="elements">
      <label for="Password">New Password:</label>
      <input type="password" id="New_Password_1" name="New_Password_1" size="25" />
    </div>
	    <div class="elements">
      <label for="Password">Repeat New Password:</label>
      <input type="password" id="New_Password_2" name="New_Password_2" size="25" />
    </div>
    <div class="submit">
     <input type="hidden" name="formsubmitted" value="TRUE" />
      <input type="submit" value="Change" />
    </div>
  </fieldset>
</form>
</body>
</html>
